#!/usr/bin/python
# -*- coding: utf-8 -*-
#Create by fla
#Create Time 2006 13- 4月-06 11:34:19 下午 


from distutils.core import setup
import cPickle as pickle
import py2exe #

counter_start = 1000
intro = 'Set Static Arp Gateway MAC Address'
try:
    f = open( 'build_counter', 'r' )
except IOError:
    f = open( 'build_counter', 'w' )
    pickle.dump( counter_start, f )
    f.close()
    
counter = int( pickle.load( f ) ) + 1
f.close()

f = open( 'build_counter', 'w' )
pickle.dump( counter, f )
f.close()

setup( 
    options={"py2exe":{"dist_dir": "ssagma", \
                        "optimize":2}, 
                    }, 
    console = [ 
        { 
            "script": "ssagma.py", 
            "icon_resources": [( 1, "ico.ICO" )] , 
        } 
    ], 
    zipfile=r"ssagmaHelper.dll", 
    name="%s" % intro, 
    version="1.0.%d" % counter, 
    author='fla.liu', 
    author_mail='ssagma@gmail.com', 
    description=intro, 
    long_description='Set Static Arp Gateway MAC Address', 
    platforms='win32', 
    maintainer='fla.liu', 
    url='http://soft.oguard.com', 
 ) 

